package com.gzsxy.sso.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.gzsxy.sso.common.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 *
 * @author zxl
 * @since 2021-11-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("oauth_client_details")
@ApiModel(value="OauthClientDetails对象", description="")
public class OauthClientDetails extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "客户端标识")
//    @TableId(value = "client_id", type = IdType.ASSIGN_ID)
    private String clientId;

    @ApiModelProperty(value = "接入资源列表")
    private String resourceIds;

    @ApiModelProperty(value = "客户端秘钥")
    private String clientSecret;

    @ApiModelProperty(value = "范围")
    private String scope;

    @ApiModelProperty(value = "认证类型")
    private String authorizedGrantTypes;

    @ApiModelProperty(value = "web重定向地址")
    private String webServerRedirectUri;

    @ApiModelProperty(value = "授权")
    private String authorities;

    @ApiModelProperty(value = "token有效期")
    private Integer accessTokenValidity;

    @ApiModelProperty(value = "刷新token有效期")
    private Integer refreshTokenValidity;

    @ApiModelProperty(value = "附加信息")
    private String additionalInformation;

    private Integer archived;

    private Integer trusted;

    @ApiModelProperty(value = "自动审核")
    private String autoapprove;


}
